import request from '@/utils/request'
//排行榜 
// 列表
export function getRankingList(params) {
    return request({
        url: 'rank/index',
        method: 'post',
        data: params
    })
}
// 添加
export function addRanking(params) {
    return request({
        url: 'rank/create',
        method: 'post',
        data: params
    })
}
// 删除
export function delRanking(params) {
    return request({
        url: 'rank/delete',
        method: 'post',
        data: params
    })
}
// 发布
export function statusRanking(params) {
    return request({
        url: 'rank/status',
        method: 'post',
        data: params
    })
}
// 详情
export function getRankingDetail(params) {
    return request({
        url: 'rank/detail',
        method: 'post',
        data: params
    })
}
// 编辑
export function editRanking(params, method) {
    return request({
        url: 'rank/update',
        method: 'post',
        data: params
    })
}
//获取类型
export function getType() {
    return request({
        url: 'rank/getType',
        method: 'post',
    })
}